﻿<title>旺进财</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<script type="text/javascript" src="#(assets)/js/jquery-2.2.4.min.js"></script>
<script type="text/javascript" src="#(assets)/js/app.js"></script>
<script type="text/javascript" src="#(assets)/js/layer/layer.js"></script> 
<style>
	*{font-family:"Microsoft YaHei",Arial,Helvetica,sans-serif,"SimSun";}
	select,input{-webkit-appearance:none;border:0px;
		-webkit-tap-highlight-color: rgba(0, 0, 0, 0);   
	}
</style>


<body bgcolor="#fff" style="margin:0px;">   
	#@homemenu("login")
	<div align="center" style="width:auto;height:500px;background:url(#(path)/assets/home/user/reg_img4.png) no-repeat;background-size:100% 486px">
		<div align="right" style="width:1100px;padding-top:80px;">
			<div align="center" style="width:300px;height:310px;background:#FFF;box-shadow:0 0 10px #999">
				<div style="color:#6d6d6d;font-size:20px;line-height:50px;height:50px;padding-top:30px;">登录旺进财</div>
				<div style="margin-top:20px;">
					<input placeholder="手机号" id="mobile" style="border:1px solid #cbcbcb;background-size:30px 30px;background:url(#(path)/assets/home/user/reg_img1.png) no-repeat 15px 6px;border-radius:8px;padding-left:40px;height:40px;width:250px;font-size:16px;" type="tel" />
				</div>
				<div style="margin-top:20px;">
					<input placeholder="密码" id="password" style="border:1px solid #cbcbcb;background-size:30px 30px;background:url(#(path)/assets/home/user/reg_img3.png) no-repeat 15px 6px;border-radius:8px;padding-left:40px;height:40px;width:250px;font-size:16px;" type="password"  />
				</div>
				<div style="color:#ff2d3b;margin-top:15px;"> 
					<span onclick="window.location.href='#(path)/user-reg'" style="cursor:pointer;margin-right:100px;">免费注册</span>
					<span onclick="window.location.href='#(path)/user-forget'"style="cursor:pointer;" >忘记密码？</span>
				</div>
				<div  style="width:100%;height:50px;margin-top:15px;"> 
					<input id="log_trueimg" style="cursor:pointer;border:1px solid #fd4456;border-radius:8px;color:#fd4456;height:35px;width:250px;font-size:16px;background:#fff" value="登 录" type="button"  />
				</div> 
			</div>   
		</div>
	</div>  
	<!--foot-->
	<div align="center" style="color:#9e9daf;font-size:13px;width:100%;height:100px;background:#FFF">
		<div style="padding-top:15px;"> 
			<a>关于我们&nbsp;&nbsp;|&nbsp;&nbsp; </a>
			<a>人才招聘&nbsp;&nbsp;|&nbsp;&nbsp; </a>
			<a>法律声明&nbsp;&nbsp;|&nbsp;&nbsp;</a> 
			<a>意见反馈&nbsp;&nbsp;|&nbsp;&nbsp;</a>
			<a>联系我们&nbsp;&nbsp;|&nbsp;&nbsp;</a>
			<a>新手必读</a>
		</div>
		<div style="padding-top:10px;">
			市场有风险，投资需谨慎
		</div>
		<div style="">
			版权所有（C）doginmoney 2017 旺进财 财使你前进 | 浙江盈心科技有限公司 | 浙ICP备17041600号
		</div>
	</div>

<script>
	//提交 
	$("#log_trueimg").click( function(){
		var mobile = $("#mobile").val();
		var password = $("#password").val();
		if($.isBlank(mobile)){
			layer.msg("号码不能为空！", {time: 1000, icon:2});
		}else if($.isBlank(password)){
			layer.msg("密码不能为空！", {time: 1000, icon:2});
		}else{
			$.getJSON("#(path)/user/login?mobile="+mobile+"&password="+password+"&type=web", function(datainfo) {
				console.log(datainfo);
				if(datainfo.code=='success'){
					layer.msg(datainfo.msg,{icon:1,time:1000},function(){
						window.location.href="#(path)/index";
					}); 
				}else{
					layer.msg(datainfo.msg,{icon:2,time:1000}); 
				}
			}); 
		}
	});
	
	
</script>
</body>